Skip to content

SWMR#79

Merged
mulimoen merged 3 commits intometno:mainfrom
magnusuMET:SWMR
Nov 19, 2025
Merged

SWMR#79
mulimoen merged 3 commits intometno:mainfrom
magnusuMET:SWMR

Conversation

@magnusuMET
Copy link
Copy Markdown
Collaborator

A first stab at Single Writing Multiple Readers.

Seems there might be a bug for shape checking which should be fixed by only reading shape once per read

Fixes #78

@philbucher You may play around with this prototype and see if it fits your needs

@magnusuMET magnusuMET closed this Apr 29, 2025
@magnusuMET magnusuMET reopened this Apr 29, 2025
@magnusuMET magnusuMET force-pushed the SWMR branch 4 times, most recently from 5c940a2 to 00c1a94 Compare April 29, 2025 10:40
@philbucher
Copy link
Copy Markdown

Hi @magnusuMET,
Thanks a lot for the prototype! I will let you know once I tested this, but it might still take some time due to other dependencies.

@philbucher
Copy link
Copy Markdown

Hi,
I finally got around to test this in detail, and it works as expected!
I have one application writing a h5 file, and another one reading it at the same time
Without the swmr read-mode, I get the following error, as expected:

Failed to open marc h5 result file in Read mode: H5Fopen(): unable to open file: file is already open for write (may use <h5clear file> to clear file consistency flags

So from my side it would be great to merge this!
Thanks again!

@philbucher
Copy link
Copy Markdown

Hi @magnusuMET , any updates on this PR? It would be great to have this functionality available in master

@philbucher
Copy link
Copy Markdown

@mulimoen if this is not ready for merging to master, perhaps you could rebase on master instead, to incorporate the latest changes (such as ndarray v0.17 support)

@mulimoen mulimoen force-pushed the SWMR branch 2 times, most recently from 921d6c7 to 5c570f3 Compare November 19, 2025 20:25
@mulimoen mulimoen merged commit 8cda124 into metno:main Nov 19, 2025
38 checks passed
@philbucher
Copy link
Copy Markdown

awesome, thanks for merging!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for Single-Writer / Multiple-Reader (SWMR)

3 participants